﻿var browserWidth; 
var browserHeight; 
 
function getAreaBrowser() 
{ 
    browserHeight = 0; 
    browserWidth = 0; 
    if (typeof(window.innerWidth) == 'number') 
    { 
        browserHeight = window.innerHeight; 
        browserWidth = window.innerWidth;
    } 
    else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) 
    { 
        browserHeight = document.documentElement.clientHeight; 
        browserWidth = document.documentElement.clientWidth; 
    } 
    else if (document.body && (document.body.clientWidth || document.body.clientHeight)) 
    { 
        browserHeight = document.body.clientHeight; 
        browserWidth = document.body.clientWidth; 
    } 
} 

